<?php
require_once 'BaseController.php';

/**
 * 不適切物件確認画面コントローラクラス<br />
 *
 * @package apamanshop
 * @author A.Miyata
 * @copyright　
 */
class Inquiry_ClaimcnfController extends Inquiry_BaseController
	{
		/**
		 * インデックスアクション
		 *
		 */
		public function indexAction(){
			//表示テンプレートパス
			$this->_display_path = APPLICATION_PATH.'/modules/inquiry/views/scripts/estate.tpl';

			// パラメータの取得
			//$this->_params = $this->getParameters();

			// 内容コンバート
			$claimArray = array();
			if ($this->_params['Inquiry1'] != "") $claimArray[] = $this->_params['Inquiry1'];
			if ($this->_params['Inquiry2'] != "") $claimArray[] = $this->_params['Inquiry2'];
			if ($this->_params['Inquiry3'] != "") $claimArray[] = $this->_params['Inquiry3'];
			if ($this->_params['Inquiry4'] != "") $claimArray[] = $this->_params['Inquiry4'];
			if ($this->_params['Inquiry5'] != "") $claimArray[] = $this->_params['Inquiry5'] . "(" . $this->_params['Other'].")";
			$claimContent = implode(", ", $claimArray);

	        //=====表示用共通パラメータ設定=====
			$this->setCommonParams();
			$this->setSubParams();
			$this->_data =  $this->_params;
			$this->_data['ClaimContent'] = $claimContent;

			//ブロック設定
			$this->setBlockClaimScript();
			$this->setSubblockClaimCommon();
			$this->setBlock($this->_claimcnf_helper);

			//表示
			$this->display($this->_display_path);
		}

		/**
		 * 不適切物件お問合せ画面共通パラメータ設定
		 *
		 */
		private function setSubParams()
		{
			//=====タイトル=====
			$this->setTitle('賃貸情報アパマンショップ[不適切物件情報の送信]');

			//=====フッタのトップへ戻るコメント=====
			$this->_params['footerTitle'] = '店舗お問い合わせページ';

			//=====タイトルバー設定=====
			$this->_params['contentsTitle'] = '不適切物件情報　≫　入力確認';

			// パンくず設定
			$this->_breadcrumb->add('お問い合わせ ', $this->_sslurl . 'inquiry/claimentry');
	        $this->setBreadCrumb($this->_breadcrumb->generateBreadcrumb());

		}

	}
?>